
<template>
  <div>
    <h1>
      基本语法
      <button @click="hello">hello(get)</button>
    </h1>
  </div>
</template>

<script setup>
// import {HelloApi} from '@/api/index.js'
import {HelloApi} from "@/api/index.js";
import {ElNotification} from "element-plus";

const hello = async ()=>{
  const {code,msg} = await HelloApi()
  if(code === 0){
    ElNotification.success('success')
  }
  console.log(code,msg)
}
</script>

<style scoped lang="scss">

</style>